<template>
	<view>
		<cu-custom bgColor="bg-black" :isBack="true">
			<block slot="backText">返回</block>
			<block slot="content">编辑商品</block>
			<!-- <block slot="right">
				<view @tap="modelFlag = true;editFlag = false">添加</view>
			</block> -->
		</cu-custom>
		<detail :is-edit="true" :id="id" :cate-list="catelist"></detail>
	</view>
</template>

<script>
	import detail from './components/detail'
	
	export default {
		name: "edit",
		components: { detail },
		data() {
			return {
				id: null,
				catelist: null
			}
		},
		onLoad(e) {
			this.id = e.id
			this.catelist = JSON.parse(e.catelist)
		},
		methods: {
			
		}
	}
</script>

<style>

</style>
